There are two different ways that CGI
scripts are most commonly configured to run
on most systems. The first requires that
scripts must be placed in a valid cgi-bin
for them to work. Error 501 usually says that
the server does not support the method POST
to a non script area at this time. This means
that since you do not have your files in a
server defined cgi-bin, the server will not
allow the POST method to these files, and
will not execute these scripts.
Another solution is that your web provider
has turned on ExecCGI, allowing any file in
your directory with a .cgi extension to be
executed. Try renaming your .pl files to
.cgi.
More Information: If all else fails
and you are still getting this error, write
your system administrator and ask if you can
place these scripts in a cgi-bin directory or
if you can have permission to execute CGI
scripts.